package com.dongdongshop.controller;

import com.dongdongshop.service.ItemPageService;
import com.dongdongshop.service.ItemService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("item")
public class ItemController {

    @DubboReference
    private ItemPageService itemPageService;

    @RequestMapping("itemPage")
    @ResponseBody
    public String itemPage(Long goodsId){
        itemPageService.itemPage(goodsId);
        return "OK";
    }

}
